package com.qcby.service.Impl;

import com.qcby.dao.AdminMapper;
import com.qcby.entity.Admin;
import com.qcby.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 阿笙
 */
@Service("adminService")
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> find(Admin admin) {

        return adminMapper.find(admin);
    }



    @Override
    public List<Admin> listAdmin() {
        return adminMapper.listAdmin();
    }



    @Override
    public int deleteId(Integer id) {

        return adminMapper.deleteId(id);
    }

    @Override
    public List<Admin> adiFind(String admin) {
        return adminMapper.adiFind(admin);
    }

    @Override
    public int insert(Admin record) {
        return adminMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(Admin admin) {
        return adminMapper.updateByPrimaryKey(admin);
    }

    @Override
    public List<Admin> selectById(Integer id) {
        return adminMapper.selectById(id);
    }


}
